<?php $this->template->add_admin_js_lib('vendor/moment/min/moment-with-langs.min.js'); ?>
<?php $this->template->add_admin_js_lib('vendor/datetimepicker/js/bootstrap-datetimepicker.min.js'); ?>

<fieldset style="<?php echo (!$help)?'':'padding-bottom: 0px;';?>">
<div class="form-group <?php echo (form_error(@$data['name']))?'has-error':'';?>">
   <label class="col-sm-2 control-label"><?php echo $label;?></label>
   <div class="col-sm-10">
	  <div class="datetimepicker input-group date mb-lg" >
	  <?php echo form_input($data, $value, $extra); ?>
	 <span class="input-group-addon">
		<span class="fa fa-calendar"></span>
	 </span>
  </div>
	  <?php if($help) {?>
	  <span class="help-block m-b-none"><?php echo $help;?></span>
	  <?php } ?>
	  <?php echo form_error(@$data['name'],'<span class="help-block m-b-none">','</span>'); ?>
   </div>
</div>
</fieldset>

